//
//  NSDataAdditions.h
//  iThief
//
//  Created by Vu Manh Hung on 2008/11/7.
//  Copyright 2008 RENACENTIA. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface NSData (NSDataAdditions)
+ (NSData *) dataWithBase64EncodedString:(NSString *) string;
- (id) initWithBase64EncodedString:(NSString *) string;

- (NSString *) base64Encoding;
- (NSString *) base64EncodingWithLineLength:(unsigned int) lineLength;

- (BOOL) hasPrefix:(NSData *) prefix;
- (BOOL) hasPrefixBytes:(void *) prefix length:(unsigned int) length;
@end